package com.gin.supermarket_inventory_system.inventory.docket;

import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @since : 2023/10/10 11:42
 * @author : ginstone
 * @version : v1.0.0
 **/
@Configuration
public class InventoryDocket {
    /**
     *  接口路径前缀
     */
    public static final String API_PREFIX = "/inventory";

    @Bean
    public GroupedOpenApi InventoryApi() {
        return GroupedOpenApi.builder()
                .group("库存管理")
                .pathsToMatch(API_PREFIX + "/**")
                .build();
    }
}

